package com.zsrt.devbase.dto;


import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

@Table(name="account")
public class AccountDTO extends BaseDTO{

	/**
	 * 
	 */
	private static final long serialVersionUID = 6229298106573805333L;
	
	
	@NotBlank(message="账号不能为空")
	@Column(name="account_code")
	private String accountCode;
	
	@NotBlank(message="密码不能为空")
	@NotEmpty(message="密码不能为空")
	@Column(name="password")
	private String password;
	
	@Column(name="phone")
	private String phone;
	
	
	@Column(name="email")
	private String email;
	
	
	@Transient
	private String code;
	
	public String getAccountCode() {
		return accountCode;
	}
	
	public void setAccountCode(String accountCode) {
		this.accountCode = accountCode;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	
	
	
}
